package org.halk.myutils.sendmsg;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ffdeng
 * @create 2021/12/7
 */
public class Constants {

    private Constants() {

    }

    public static final Map<String, String> resultCodeMap = new HashMap<>();

    static {
        resultCodeMap.put("000000", "成功");
        resultCodeMap.put("000001", "参数校验失败");
        resultCodeMap.put("500001", "短信发送失败");
        resultCodeMap.put("500002", "限制发送 ");
        resultCodeMap.put("500003", "模板不存在");
        resultCodeMap.put("500004", "发送渠道不存在");
        resultCodeMap.put("500005", "手机号在黑名单");
        resultCodeMap.put("500006", "IP 不在白名单中");
        resultCodeMap.put("500007", "该产品下短信模板被禁用");
        resultCodeMap.put("500008", "短信验签失败");
        resultCodeMap.put("600000", "存在超出频次的发送");
        resultCodeMap.put("600001", "超出该 APP 下该模板发送的每分钟频次限制");
        resultCodeMap.put("600002", "超出该 APP 下该模板发送的每小时频次限制");
        resultCodeMap.put("600003", "超出该 APP 下该模板发送的每天频次限制");
        resultCodeMap.put("999999", "未知异常");
        resultCodeMap.put("900001", "通道参数配置异常");
        resultCodeMap.put("900002", "号段查询调用异常");
        resultCodeMap.put("900003", "模板短信类型未配置");
        resultCodeMap.put("900004", "短信内容包含敏感信息");
        resultCodeMap.put("900005", "短信内容识别校验出错或者未配置内容识别信息");
        resultCodeMap.put("900006", "不支持的接口请求方式");
        resultCodeMap.put("900007", "短信请求模板参数规则校验出错");
    }

    public static final String SYMBOL_AND = "&";

    public static final String SYMBOL_EQUAL = "=";

    public static final String BAR = "-";

    public static final String SUCCESS_CODE = "000000";

    public static final String CODE_WORD = "code";

    public static final String DESC_WORD = "desc";

    public static final String APPID_WORD = "appid";

    public static final String PHONE_WORD = "phone";

    public static final String COMMA = ",";

    public static final int CODE_SUCCESS = 200;

}
